#import "textundo.h"

@implementation TextSelColorChange

- (BOOL)subsumeChange:nextChange
{
    NXSelPt start, end;

    if ([nextChange class] == [TextSelColorChange class]) {
	[textView getSel:&start :&end];

	if (start.cp == selStart && end.cp == selEnd) {
	    [newSel free];
	    newSel = [[[TextSelection alloc] initText:textView] capture];
	    return YES;
	}
    }

    return NO;
}

@end

